#pragma once
#ifndef CPLAYER_H_
#define CPLAYER_H_

#include "CVObject.h"
#include "CEntity.h"
#include "Weapon.h"

class CPlayer : public CVObject{
private:
	int m_frame;
	float m_animationa;
	float m_animationb;
	int m_hspeed;
	int m_vspeed;
	bool m_bJumped;
	CWeapon* m_pWeapon;
	CWeapon* m_pAssault;
	bool m_bRUNONCE;

	Vector2 m_lastCollisionPos;

public:

	CPlayer();
	CPlayer(ENTITY_PARAMS* params);
	~CPlayer();

	void Step(CEntityList *_EntList, BYTE _keys[256], DIMOUSESTATE _mouse);
	void Draw(Sprites* _Sprite);

	void onCollision(const Vector2& result, CEntity* pEnt);
	
};

#endif